package com.medical.data.service;

import com.medical.data.domain.FormItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.medical.data.vo.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cj
 * @since 2024-02-06
 */
public interface FormItemService extends IService<FormItem> {


    AddFormItemResultVo addFormItem(AddFormItemVo addFormItemVo);

    Long getLastItemSort(String formId);

    void updateFormItem(AddFormItemVo addFormItemVo);

    AddFormItemResultVo formItemSort(FormItemSortVo formItemSortVo);

    List<FormItem> getFormItem(String formId);

    void deleteFormItem(String formId, String formItemId);

    PreviewFormItemVo previewFormItem(String formId);

    List<FormFieldVO> listFormFields(String formId);

    void addAllFormItem(FormItem formItem);

    FormItem getAllFormItem(String formId);

    Map<String, String> getAllFormItemByFormId(String formId);

    String getLabelByFormId(String formItemId);

    void shareFormItem(String originalFormId, String targetFormId);

    List<FormItem> getFormItemByFormId(String formId);
}
